package com.imu.purse.modules.base.service;

import java.math.BigDecimal;

import com.imu.purse.modules.base.entity.SysConfigEntity;

/**
 * 配置信息
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-22 10:33:20
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface SysConfigService 
{
	/****
	 * 插入私募明细
	 * @param entity
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int save(final SysConfigEntity entity);
    
    /****
	 * 删除私募明细
	 * @param ids
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public boolean delete(final String ...ids);
    
    /****
	 * 修改私募明细
	 * @param entity
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int update(final SysConfigEntity entity);
    
     /****
	 * 插入或跟新私募明细
	 * @param entity
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public int saveUpdate(final SysConfigEntity entity);
    
    /****
     * 私募抢单
     * @param count
     */
    public BigDecimal priGrab(final BigDecimal count);
    
    /****
	 * 根据ID查询私募明细
	 * @param id
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public SysConfigEntity findById(final Long id);

    /****
	 * 根据ID查询私募明细
	 * @param id
 	 * @date 2018-03-22 10:33:20
	 * @return
	 */
    public SysConfigEntity findByKey(final String key);
}
